

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>

</title><link href='./home/css/etm.css' rel='stylesheet' type='text/css' /><!--[if IE 8]> <link href='/Themes/Theme3/ie8Fix.css' rel='stylesheet' /> <![endif]-->

    <script src="./home/js/jquery-1.4.2.min.js"></script>
    <script src="./home/js/flexigrid.js"></script>
    <script src="./home/js/jQuery.Ex.js"></script>
    <meta http-equiv="X-UA-Compatible" content="IE=11; IE=10; IE=9; IE=8; IE=7; IE=EDGE"/><script src='./home/js/jquery.nicescroll.min.js' type='text/javascript'></script><script type='text/javascript'>var isEtmClient=false;function ReSizeScrollbar() { if ($('form').getNiceScroll().length > 0) {     $('form').getNiceScroll().onResize();}}function ReSizeFlexgridScrollbar() { if ($('.bDiv').getNiceScroll().length > 0) {     $('.bDiv').getNiceScroll().onResize();}}function InitFlexgridScrollbar(){     $('.bDiv').niceScroll({cursorcolor: '#75A801',zindex:4});}function ReSizenDivScrollbar() { if ($('.flexigrid .nDiv').getNiceScroll().length > 0) {     $('.flexigrid .nDiv').getNiceScroll().onResize();}}function InitnDivScrollbar(){     $('.flexigrid .nDiv').niceScroll({cursorcolor: '#75A801',horizrailenabled:false});}function proxyExecuteFun(funName) {if(funName == undefined || funName==null|| funName.length==0){window.parent.showsending(true, "执行中，请耐心等待");setTimeout(function() { window.parent.showsending(false); }, 5000);return;}  if (window[funName]()) {window.parent.showsending(true, "执行中，请耐心等待");setTimeout(function() { window.parent.showsending(false); }, 5000);return true; } return false; };var _tmpOnSelectedFile = null;function onSelectedFile(fileName, fileUrl, isImg) {   if (_tmpOnSelectedFile != null) {        _tmpOnSelectedFile(fileName, fileUrl, isImg);    }}function showFileList(callback) {   window.parent.showDialog('查看素材库', '/Modules/OA/CMyFileListView.aspx?navId=96aa73ff-252e-4a04-836f-b82b564278c2', '900px', '450px');   _tmpOnSelectedFile = callback;}$(function () {if (navigator.userAgent.toLowerCase().indexOf('edge/') != -1) { $('input[type=submit],.tmpSubmitButton').bind({ mouseenter: function () { $(this).addClass('tmpSubmitButton'); $(this).prop('type', 'button'); }, mouseleave: function () { $(this).removeClass('tmpSubmitButton'); $(this).prop('type', 'submit'); }, click: function () { $(this).removeClass('tmpSubmitButton'); $(this).prop('type', 'submit'); } }); }if (window.parent != undefined && window.parent != null && typeof window.parent.showsending != "undefined") { window.parent.showsending(false, ''); }$(".button").each(function() { if ($(this).attr("type") == "submit" &&!$(this).hasClass('noloading') && window.parent != undefined && window.parent != null && typeof window.parent.showsending != "undefined") { var tmpClick = $(this).attr("onclick");if(tmpClick == undefined || tmpClick==null|| tmpClick.length<2){ $(this).attr("onclick","proxyExecuteFun();");return;}  if (tmpClick.indexOf("return ") != -1 && tmpClick.indexOf("(") != -1) { tmpClick = tmpClick.substring(7).replace(/\s+/g, ''); if (tmpClick.indexOf("()") != -1) { var funName = tmpClick.substring(0, tmpClick.indexOf("(")); $(this).attr("onclick","return proxyExecuteFun('" + funName + "');"); } } } });$('body').click(function() {     if (typeof parent.onChildPageClick !='undefined') {         parent.onChildPageClick();     }});     $('form').height($(window).height()-0).niceScroll({cursorcolor: '#75A801',horizrailenabled:false });     $(window).resize(function () {         ReSizeScrollbar();     });});</script>
    <script type="text/javascript">
        function show(navId, productGuid) {
           // window.location.href = "ProductEdit.aspx?sc=btn&navId=96aa73ff-252e-4a04-836f-b82b564278c2&navId=" + navId + "&ProductGuid=" + productGuid;
            window.parent.showDialog("物品提交", "../Modules/Asset/ProductEdit.aspx?navId=" + navId + "&ProductGuid=" + productGuid, "900px", "470px");
        };

        function showProductInfo(productGuid, navId) {
            window.parent.showDialog("物品查看", "../Modules/Asset/ProductInfo.aspx?navId=" + navId + "&ProductGuid=" + productGuid, "900px", "470px");
        };
        $(function () {
            $(".ProductDelete").live("click", function () {
                if (confirm("确定要删除吗？")) {
                    $.AjaxETM("ProductDelete", { "ProductGuid": $(this).attr("ProductGuid"), "ProductName": $(this).attr("ProductName") },
                        function (data) {
                            if (data == "删除成功！") {
                                alert("删除成功");
                            }
                            else {
                                alert(data);
                            }
                        },
                         true, "text");
                }
            });
        });
        function BatchDel() {
            var productGuid = "";
            var count = 0;
            $("input[name='selectItem']:checkbox:checked").each(function () {
                productGuid += $(this).val() + ",";
                count += 1;
            });
            if (count == 0) {
                alert("请选择数据");
                return false;
            }
            productGuid = productGuid.substring(0, productGuid.length - 1);
          
            if (confirm("确定要删除吗？")) {
                $.AjaxETM("Asset_ProductDelete_More", { "productGuids": productGuid },
                    function (data) {
                        alert(data);
                    },
                     true, "text");
            }

        }
    </script>
</head>
<body>
    <form method="post" action="ProductList.aspx?navId=96aa73ff-252e-4a04-836f-b82b564278c2" id="form1">
<div class="aspNetHidden">
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTE0MjI3NzA2MDYPZBYCAgMPZBYCZg8QZBAVBAnor7fpgInmi6kNfOKAlOWbvuS5puexuwp84oCU6JSs6I+cDXzigJTmloflhbfnsbsVBCQwMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAkMDMxNTE0ZTMtNmY2MC00ZjgxLTk0NGEtNWEyMTIwMTNmOGRkJGQ4ZGViMWY1LWY1OTUtNDhjYi1hODRmLTViZjUwYmZkZTYzYSRhMGVmOWYyNC00ZWFiLTQxMDgtYmFkZC1mOWUyNjkyN2EwMWIUKwMEZ2dnZ2RkZGztCWUru5rs29aIPp2use6ldRtgNHJYcxXwJcoV17jG" />
</div>

<div class="aspNetHidden">

	<input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="BAE04738" />
	<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEdAAfEAaks4ODMX3H4uXAKLZGFpIICcBXk6OcckZ9mDupcBqyCJBLj/eyaJrRXY72XtPdFTnvw0QuDr6Wshv0dM+YV9jlqjLaZV77WuufOkYZqBpNcQtnKtb31hEtbT6bWJ9820eK77DGr/pO8r5k2XaJL48sd2AbWVhQ5/450iVY6xDWnQO9oi5HJIKx/RyjfZe0=" />
</div>
        <table class="search">
            <tr>
                <td class="textAlignRight" style="width: 78px;">物品编码：
                </td>
                <td class="borderRight" style="width: 160px;">
                    <input name="tbCode" type="text" id="tbCode" class="int" />
                </td>
                <td class="textAlignRight" style="width: 78px;">物品分类：
                </td>
                <td class="borderRight"  style="width: 160px;">
                    <select name="ddlCategory" id="ddlCategory" class="int" style="width:140px;">
	<option value="00000000-0000-0000-0000-000000000000">请选择</option>
	<option value="031514e3-6f60-4f81-944a-5a212013f8dd">|—图书类</option>
	<option value="d8deb1f5-f595-48cb-a84f-5bf50bfde63a">|—蔬菜</option>
	<option value="a0ef9f24-4eab-4108-badd-f9e26927a01b">|—文具类</option>

</select>

                </td>
                <td rowspan="2" class="" style="padding-left: 20px;">
                    <input type="button" class="button" value="搜 索" id="btnSearch" />
                    &nbsp;&nbsp;&nbsp;
                    
                </td>
            </tr>
            <tr>
                <td class="textAlignRight">物品名称：
                </td>
                <td class="borderRight" >
                    <input name="tbName" type="text" id="tbName" class="int" />
                </td>
                
                <td class="textAlignRight" >是否商品：
                </td>
                <td class="borderRight">
                    <select name="ddlIsMallProduct" id="ddlIsMallProduct" class="int" style="width: 140px;">
                        <option value="-1">请选择</option>
                        <option value="1">是</option>
                        <option value="0">否</option>
                    </select>
                </td>
            </tr>
        </table>
        <table id='Test' style='display:none;'></table><input type='text' style='display:none;' id='etmparams' name='etmparams' value='[{"IsCanHide":true,"FormatString":null,"ColumnType":"String","PageColumnGuid":"00000000-0000-0000-0000-000000000000","PageName":null,"SortId":0,"IsSetValueEqualName":false,"VirtualColumn":null,"Display":"","Name":"ProductGuid","Width":35,"Sortable":false,"ColumnHeader_BindId":null,"ColumnHeader_IsBindDropDownList":false,"Align":"Center","Checkbox":true,"IsLink":false,"LinkStrForamtBindColumn":null,"LinkStrForamt":null,"LinkClass":"","OperationButtons":"","SubStringLength":0,"BindAttrs":null,"IsJsAddColumn":false},{"IsCanHide":true,"FormatString":null,"ColumnType":"String","PageColumnGuid":"00000000-0000-0000-0000-000000000000","PageName":null,"SortId":0,"IsSetValueEqualName":false,"VirtualColumn":"ProductAct","Display":"操作","Name":"ProductGuid,ProductName,96aa73ff-252e-4a04-836f-b82b564278c2","Width":100,"Sortable":false,"ColumnHeader_BindId":null,"ColumnHeader_IsBindDropDownList":false,"Align":"Center","Checkbox":false,"IsLink":false,"LinkStrForamtBindColumn":null,"LinkStrForamt":null,"LinkClass":"","OperationButtons":"","SubStringLength":0,"BindAttrs":null,"IsJsAddColumn":false},{"IsCanHide":true,"FormatString":null,"ColumnType":"String","PageColumnGuid":"00000000-0000-0000-0000-000000000000","PageName":null,"SortId":0,"IsSetValueEqualName":false,"VirtualColumn":"ProductShow","Display":"物品编码","Name":"ProductCode,ProductGuid,96aa73ff-252e-4a04-836f-b82b564278c2","Width":100,"Sortable":false,"ColumnHeader_BindId":null,"ColumnHeader_IsBindDropDownList":false,"Align":"Center","Checkbox":false,"IsLink":false,"LinkStrForamtBindColumn":null,"LinkStrForamt":null,"LinkClass":"","OperationButtons":"","SubStringLength":0,"BindAttrs":null,"IsJsAddColumn":false},{"IsCanHide":true,"FormatString":null,"ColumnType":"String","PageColumnGuid":"00000000-0000-0000-0000-000000000000","PageName":null,"SortId":0,"IsSetValueEqualName":false,"VirtualColumn":null,"Display":"物品名称","Name":"ProductName","Width":200,"Sortable":false,"ColumnHeader_BindId":null,"ColumnHeader_IsBindDropDownList":false,"Align":"Center","Checkbox":false,"IsLink":false,"LinkStrForamtBindColumn":null,"LinkStrForamt":null,"LinkClass":"","OperationButtons":"","SubStringLength":0,"BindAttrs":null,"IsJsAddColumn":false},{"IsCanHide":true,"FormatString":null,"ColumnType":"String","PageColumnGuid":"00000000-0000-0000-0000-000000000000","PageName":null,"SortId":0,"IsSetValueEqualName":false,"VirtualColumn":null,"Display":"物品分类","Name":"CategoryName","Width":100,"Sortable":false,"ColumnHeader_BindId":null,"ColumnHeader_IsBindDropDownList":false,"Align":"Center","Checkbox":false,"IsLink":false,"LinkStrForamtBindColumn":null,"LinkStrForamt":null,"LinkClass":"","OperationButtons":"","SubStringLength":0,"BindAttrs":null,"IsJsAddColumn":false},{"IsCanHide":true,"FormatString":null,"ColumnType":"String","PageColumnGuid":"00000000-0000-0000-0000-000000000000","PageName":null,"SortId":0,"IsSetValueEqualName":false,"VirtualColumn":null,"Display":"是否商品","Name":"MallOn","Width":80,"Sortable":false,"ColumnHeader_BindId":null,"ColumnHeader_IsBindDropDownList":false,"Align":"Center","Checkbox":false,"IsLink":false,"LinkStrForamtBindColumn":null,"LinkStrForamt":null,"LinkClass":"","OperationButtons":"","SubStringLength":0,"BindAttrs":null,"IsJsAddColumn":false},{"IsCanHide":true,"FormatString":null,"ColumnType":"String","PageColumnGuid":"00000000-0000-0000-0000-000000000000","PageName":null,"SortId":0,"IsSetValueEqualName":false,"VirtualColumn":null,"Display":"采购价（元）","Name":"PurchasePrice","Width":90,"Sortable":false,"ColumnHeader_BindId":null,"ColumnHeader_IsBindDropDownList":false,"Align":"right","Checkbox":false,"IsLink":false,"LinkStrForamtBindColumn":null,"LinkStrForamt":null,"LinkClass":"","OperationButtons":"","SubStringLength":0,"BindAttrs":null,"IsJsAddColumn":false},{"IsCanHide":true,"FormatString":null,"ColumnType":"String","PageColumnGuid":"00000000-0000-0000-0000-000000000000","PageName":null,"SortId":0,"IsSetValueEqualName":false,"VirtualColumn":null,"Display":"零售价（元）","Name":"SalePrice","Width":90,"Sortable":false,"ColumnHeader_BindId":null,"ColumnHeader_IsBindDropDownList":false,"Align":"right","Checkbox":false,"IsLink":false,"LinkStrForamtBindColumn":null,"LinkStrForamt":null,"LinkClass":"","OperationButtons":"","SubStringLength":0,"BindAttrs":null,"IsJsAddColumn":false},{"IsCanHide":true,"FormatString":null,"ColumnType":"String","PageColumnGuid":"00000000-0000-0000-0000-000000000000","PageName":null,"SortId":0,"IsSetValueEqualName":false,"VirtualColumn":null,"Display":"租金（元 / 天）","Name":"DayRent","Width":90,"Sortable":false,"ColumnHeader_BindId":null,"ColumnHeader_IsBindDropDownList":false,"Align":"right","Checkbox":false,"IsLink":false,"LinkStrForamtBindColumn":null,"LinkStrForamt":null,"LinkClass":"","OperationButtons":"","SubStringLength":0,"BindAttrs":null,"IsJsAddColumn":false},{"IsCanHide":true,"FormatString":null,"ColumnType":"String","PageColumnGuid":"00000000-0000-0000-0000-000000000000","PageName":null,"SortId":0,"IsSetValueEqualName":false,"VirtualColumn":null,"Display":"单位","Name":"UnitName","Width":60,"Sortable":false,"ColumnHeader_BindId":null,"ColumnHeader_IsBindDropDownList":false,"Align":"Center","Checkbox":false,"IsLink":false,"LinkStrForamtBindColumn":null,"LinkStrForamt":null,"LinkClass":"","OperationButtons":"","SubStringLength":0,"BindAttrs":null,"IsJsAddColumn":false},{"IsCanHide":true,"FormatString":"yyyy-MM-dd HH:mm","ColumnType":"DateTime","PageColumnGuid":"00000000-0000-0000-0000-000000000000","PageName":null,"SortId":0,"IsSetValueEqualName":false,"VirtualColumn":null,"Display":"登记时间","Name":"CreateTime","Width":110,"Sortable":false,"ColumnHeader_BindId":null,"ColumnHeader_IsBindDropDownList":false,"Align":"Center","Checkbox":false,"IsLink":false,"LinkStrForamtBindColumn":null,"LinkStrForamt":null,"LinkClass":"","OperationButtons":"","SubStringLength":0,"BindAttrs":null,"IsJsAddColumn":false}]'/><input type='text' style='display:none;' id='etmUrlparams' name='etmUrlparams' value='[{"Key":"navId","Value":"96aa73ff-252e-4a04-836f-b82b564278c2"}]'/><input type='text' style='display:none;' id='etmPageUrl' name='etmPageUrl' value='http://vip.yj.etmcn.com/Modules/Asset/ProductList.aspx?navId=96aa73ff-252e-4a04-836f-b82b564278c2'/><input type='text' style='display:none;' id='pagename' name='pagename' value='ProductList'/><input type='text' style='display:none;' id='pageamethod' name='pageamethod' value='ProductListProductList'/><script type='text/javascript'> var etmFormId='form1';function fixIE9() {if ($.browser.msie && $.browser.version == 9) {$('#form1 select').each(function () {var name = $(this).attr('name');if (name != undefined && name.length > 0) {var value = $(this).val();if (value == null) {value = $(this).find('option:first').attr('value');$(this).val(value);}}});}}function RefreshGrid(){ $('#Test').flexOptions().flexReload(); };function addFormData() {fixIE9(); var dt = $('#form1').serializeArray(); $('#Test').flexOptions({ params: dt }); return true; }$(function () { $('#btnSearch').click(function () { $('#Test').flexOptions({ newp: 1 }).flexReload(); return false; }); });$('#Test').flexigrid({url: './data/zcWpgl.json',sortname: 'CreateTime',sortorder: 'desc',usepager: true,useRp: true,rpOptions: [20,30,50,100,200],rp: 30,colModel: [{ display: '', name: 'ProductGuid',etmname:'ProductGuid', width: 35, sortable: false, align: 'Center', checkbox: true ,IsLink:false,LinkClass:'',OperationButtons:'',SubStringLength:0,hide:false,BindId:'',IsForDDL:false,IsCanHide:true,FormatString:'',ColumnType:'String',IsJsAddColumn:false},{ display: '操作', name: 'ProductGuid,ProductName,96aa73ff-252e-4a04-836f-b82b564278c2',etmname:'ProductAct', width: 100, sortable: false, align: 'Center', checkbox: false ,IsLink:false,LinkClass:'',OperationButtons:'',SubStringLength:0,hide:false,BindId:'',IsForDDL:false,IsCanHide:true,FormatString:'',ColumnType:'String',IsJsAddColumn:false},{ display: '物品编码', name: 'ProductCode,ProductGuid,96aa73ff-252e-4a04-836f-b82b564278c2',etmname:'ProductShow', width: 100, sortable: false, align: 'Center', checkbox: false ,IsLink:false,LinkClass:'',OperationButtons:'',SubStringLength:0,hide:false,BindId:'',IsForDDL:false,IsCanHide:true,FormatString:'',ColumnType:'String',IsJsAddColumn:false},{ display: '物品名称', name: 'ProductName',etmname:'ProductName', width: 200, sortable: false, align: 'Center', checkbox: false ,IsLink:false,LinkClass:'',OperationButtons:'',SubStringLength:0,hide:false,BindId:'',IsForDDL:false,IsCanHide:true,FormatString:'',ColumnType:'String',IsJsAddColumn:false},{ display: '物品分类', name: 'CategoryName',etmname:'CategoryName', width: 100, sortable: false, align: 'Center', checkbox: false ,IsLink:false,LinkClass:'',OperationButtons:'',SubStringLength:0,hide:false,BindId:'',IsForDDL:false,IsCanHide:true,FormatString:'',ColumnType:'String',IsJsAddColumn:false},{ display: '是否商品', name: 'MallOn',etmname:'MallOn', width: 80, sortable: false, align: 'Center', checkbox: false ,IsLink:false,LinkClass:'',OperationButtons:'',SubStringLength:0,hide:false,BindId:'',IsForDDL:false,IsCanHide:true,FormatString:'',ColumnType:'String',IsJsAddColumn:false},{ display: '采购价（元）', name: 'PurchasePrice',etmname:'PurchasePrice', width: 90, sortable: false, align: 'right', checkbox: false ,IsLink:false,LinkClass:'',OperationButtons:'',SubStringLength:0,hide:false,BindId:'',IsForDDL:false,IsCanHide:true,FormatString:'',ColumnType:'String',IsJsAddColumn:false},{ display: '零售价（元）', name: 'SalePrice',etmname:'SalePrice', width: 90, sortable: false, align: 'right', checkbox: false ,IsLink:false,LinkClass:'',OperationButtons:'',SubStringLength:0,hide:false,BindId:'',IsForDDL:false,IsCanHide:true,FormatString:'',ColumnType:'String',IsJsAddColumn:false},{ display: '租金（元 / 天）', name: 'DayRent',etmname:'DayRent', width: 90, sortable: false, align: 'right', checkbox: false ,IsLink:false,LinkClass:'',OperationButtons:'',SubStringLength:0,hide:false,BindId:'',IsForDDL:false,IsCanHide:true,FormatString:'',ColumnType:'String',IsJsAddColumn:false},{ display: '单位', name: 'UnitName',etmname:'UnitName', width: 60, sortable: false, align: 'Center', checkbox: false ,IsLink:false,LinkClass:'',OperationButtons:'',SubStringLength:0,hide:false,BindId:'',IsForDDL:false,IsCanHide:true,FormatString:'',ColumnType:'String',IsJsAddColumn:false},{ display: '登记时间', name: 'CreateTime',etmname:'CreateTime', width: 110, sortable: false, align: 'Center', checkbox: false ,IsLink:false,LinkClass:'',OperationButtons:'',SubStringLength:0,hide:false,BindId:'',IsForDDL:false,IsCanHide:true,FormatString:'yyyy-MM-dd HH:mm',ColumnType:'DateTime',IsJsAddColumn:false}],width: $(window).width(),height: $(window).height()-242+60,onSubmit: addFormData});</script>
        <div style="margin-left: 20px;"><input type="submit" name="btnAdd" value="添 加" onclick="return show();" id="btnAdd" class="button" />
                    &nbsp;&nbsp;
                    <input type="submit" name="btnBatchDel" value="批量删除" onclick="return BatchDel();" id="btnBatchDel" class="button" /></div>
    </form>
</body>
</html>
